ksh的while read line怎樣按一個命令的輸出做迴圈-Shell-ChinaUnix.net oracle@testdb1:/oravl01/oracle>while read line> do> echo> echo $line> done ksh的while read line怎樣按一個命令的輸出做迴圈 ... http://www.linuxcommand.org/man_pages/ksh1.html ksh的man page有如下說明
Ksh Read a File Line By Line ( UNIX Scripting ) - nixCraft 2009年11月20日 - How do I read a file line by line using KSH shell scripting under UNIX like operating systems? You can use the while loop and read command ...
reading a file line by line in ksh - Stack Overflow 2012年12月26日 - echo "var1" | while read line; do autosys_showJobHistory.sh $line | grep ... Recall that ksh doesn't support .. as an indicator for 'expand this ...
KSH script BASICS 跳到 Read Input from User and from Files - Read Input from User and from Files. Read in a Variable. From a user we read with: read var. Then the users ...
Read from a file and call KSH in loop | Unix Linux Forums | Shell ... bin/ksh while IFS='|' read f1 f2 f3 junk do /mdm/bin/load_script.ksh -a ... If it's just the two you showed, then the second line might be missing a ...
read a file line by line in ksh | Unix Linux Forums | Shell ... Hi, In ksh we use 'while read line' statement to read a file line by line. In my input file I have 5 spaces appended at the end of each line. When I ...
Behavior of while loop and for loop in unix script - Unix & Linux 2012年11月27日 - usr/bin/ksh while read line do r1=`echo $line | cut -d"#" -f1`; r2=`echo $line | cut -d"#" -f2`; apx_server_disk_space.sh $r2 $r1 done
Unexpected condition outcome in a ksh script - Unix & Linux 2013年8月20日 - bin/ksh cat example.txt | while read LINE # reading line from file do var=$LINE # assigning line to variable echo $var # printing the line ...
How to process a file line by line in ksh? - Server Fault 2009年5月22日 - somthing like: while read LINEVAR ; do echo ${LINEVAR} ; done < myfile.txt. which will read one line of input from myfile.txt at a time?
What's the Korn shell command to read a file one line at a ... 2010年5月6日 - Try redirecting the file as input to a while loop: #!/bin/ksh -xv cd /borders/home/entsys/tmp while read file do echo "The file to get next is " $file